﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wolfy.NetDisk.Core.Model;
using Wolfy.NetDisk.Core.Repository;
using Wolfy.NetDisk.Core.Service;

namespace Wolfy.NetDisk.Service
{
    public class LogService : CRUDService<Log>, ILogService
    {
        public LogService(IRepository<Log> repository)
            : base(repository)
        { }

        public void WriteLog(Log log)
        {
            repository.Insert(log);
            repository.Save();
        }
    }
}
